<form action="<{link app=b2c ctl=site_member act=save_cons}>" method="post" class="form-handling" id="member_address_form">
  <input type="hidden" value="<{$consignee_id}>" name="consignee_id">

	<div class="form-group">
     <label for=""><em class="text-warn">*</em> <{t}>收货人姓名：<{/t}></label>
     <input type="text" name="name" id="" value="<{$name}>" class="x-input form-control" vtype="required">
	</div>
	<!--<li class="form-item">
      <label for="" class="form-label"><em class="text-warn">*</em> <{t}>护照号：<{/t}></label>
      <span class="form-act"><input type="text" name="passortNo" value="<{$passortNo}>" id="" class="x-input" vtype="required"></span>
    </li>-->
	
	
	<div class="form-group">
	<label for=""><em class="text-warn">*</em> <{t}>手机：<{/t}></label>
	<div class="row">
	<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
     
		<!--<{input type='select' name="phone_setting" options=$phones_prefix required="true"}>-->
		<select name="phone_setting" id="quhao" class="form-control">
			<{foreach from=$phones item=items}>
			<option value="<{$items.area}>" sid="<{$items.length}>" <{if $phone_setting == $items.area}>selected<{/if}>><{$items.area}></option>
			<{/foreach}>
		</select>
		</div>
		<div class="col-lg-9 col-md-9 col-sm-9 col-xs-9">
        <input type="text" name="mobile" value="<{$phone.mobile}>"  class="x-input form-control" id="check_mobile"><span style="color:red" class="tips"></span>
		</div>
	</div>
	</div>
	
	<div class="form-group">
		<label for=""> <{t}>固定电话：<{/t}></label>
        <input type="text" name="tel" value="<{$phone.telephone}>" class="form-control"  data-caution="<{t}>请填写手机号码或者固定电话<{/t}>">
	</div>
	

	<div class="form-group">
		<label for=""></label>
        <input type="checkbox" name="def_person" value="1" id="for_set_default" <{if $default eq "1"}>checked=checked<{/if}>>
        <label for="for_set_default"><{t}>设为默认<{/t}></label>
	</div>
	

    <div class="form-group">
      <label for="" class="form-label"></label>
        <button type="submit" class="btn btn-primary pull-right" rel="_request"><span><span><{t}>确定<{/t}></span></span></button>
        <button type="button" class="btn btn-default pull-right action-reset"><span><span><{t}>取消<{/t}></span></span></button>
		<div class="clearfix"></div>
    </div>


</form>
<script>
//window.addEvent('domready',function(){
//	$('check_mobile').addEvent('blur',function(){
//		var str = this.get('value').trim();
//		var obj = $$("#quhao option:selected");
//		var num = obj[0].get('sid');
//		var reg = new RegExp("^[1-9]\\d{"+(num-1)+"}$");
//		
//		if(str.length!=0){
//			if(!reg.test(str)){
//				$$(".tips").set('html','<{t}>手机格式错误<{/t}>');
//			}else{
//				$$(".tips").set('html','');
//			}
//		}
//	});
//});
//
//$("btn1").addEvent('click', function(e){
//	var str = $('check_mobile').get('value').trim();
//	var obj = $$("#quhao option:selected");
//	var num = obj[0].get('sid');
//	var reg = new RegExp("^[1-9]\\d{"+(num-1)+"}$");
//
//	if(str.length!=0){
//		if(!reg.test(str)){
//			$$(".tips").set('html','<{t}>手机格式错误<{/t}>');
//			e.stop();
//		}else{
//			$$(".tips").set('html','');
//		}
//	}
//});
</script>